<?php
include_once "../../../../common.php";
if(isset($_POST['ID']) && is_numeric($_POST['ID']) && !empty($_POST['ID']))
{
	$query = "	INSERT INTO WebshopContactpersonen ( 
					WebshopID,
					CreateDate,
					FirstNameBasis,
					Mobile,
					Firstname,
					Initials,
					Surname,
					Insertion,
					Function,
					Email
				) VALUES (
					 '".str_replace("'","",$_POST['ID'])."',
					NOW(),
					 '".str_replace("'","",$_POST['FirstNameBasis'])."',
					 '".str_replace("'","",$_POST['Mobile'])."',
					 '".str_replace("'","",$_POST['Firstname'])."',
					 '".str_replace("'","",$_POST['Initials'])."',
					 '".str_replace("'","",$_POST['Surname'])."',
					 '".str_replace("'","",$_POST['Insertion'])."',
					 '".str_replace("'","",$_POST['Function'])."',
					 '".str_replace("'","",$_POST['Email'])."'
				)";
	$_MySQL->runQuery($query);
	echo "succes";
}
else
{
	echo "ERROR!! webshop ombekend";
}